package com.rockxin.cat.activity;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.rockxin.cat.R;
import com.rockxin.cat.base.BaseActivity;

import butterknife.BindView;

/**
 * Created by cat on 18-3-4.
 */

public class ActiveInfoActivity extends BaseActivity {

    @BindView(R.id.back_img)
    ImageView backImg;
    @BindView(R.id.title)
    TextView title;
    @BindView(R.id.iv_bg)
    ImageView ivBg;
    @BindView(R.id.tv_active_title)
    TextView tvActiveTitle;
    @BindView(R.id.tv_active_date)
    TextView tvActiveDate;

    @Override
    protected int setLayout() {
        return R.layout.activity_active_info;
    }

    @Override
    public void initData() {
        initView();
        setListener();
        getData();
    }

    public void initView() {
        title.setText("活动详情");
        Glide.with(this).load("http://p2.wmpic.me/article/2017/02/23/1487816929_mLwPeYbD.jpg").into(ivBg);
    }

    private void setListener() {
        backImg.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
    }

    public void getData() {

    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();
        finish();
    }
}
